package xyz.csmcool.imuser.feignclient;

import com.google.common.collect.Maps;
import org.springframework.stereotype.Component;
import xyz.csmcool.imutil.utils.ResultTool;
import xyz.csmcool.imutil.webVo.ResultVo;

import java.util.Map;

/**
 * @author 什锦
 * @Package xyz.csmcool.imuser.feignclient
 * @since 2022/9/5 14:47
 */
@Component
public class RoomFileDegradeFeignClient implements RoomClient{
    /**
     * 查询用户状态
     *
     * @param uid
     * @param fid
     * @return
     */
    @Override
    public ResultVo<Map<String, Integer>> getUserStatus(Integer uid, Integer fid) {
        Map<String,Integer> map = Maps.newHashMapWithExpectedSize(1);
        map.put("status",3);
        return ResultTool.success(map);
    }
}
